package org.rainbow.shiro.session;

import org.apache.shiro.session.mgt.SimpleSession;

public class OnlineSession extends SimpleSession {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2670595400430647224L;

	public static enum OnlineStatus {
		on_line("在线"), hidden("隐身"), force_logout("强制退出");
		private final String info;
		private OnlineStatus(String info) {
			this.info = info;
		}
		public String getInfo() {
			return info;
		}
	}
	
	private String userAgent; //用户浏览器类型
	private OnlineStatus status = OnlineStatus.on_line; //在线状态
	private String systemHost; //用户登录时系统 IP
	public String getUserAgent() {
		return userAgent;
	}
	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
	public OnlineStatus getStatus() {
		return status;
	}
	public void setStatus(OnlineStatus status) {
		this.status = status;
	}
	public String getSystemHost() {
		return systemHost;
	}
	public void setSystemHost(String systemHost) {
		this.systemHost = systemHost;
	}
	
	
}
